package com.dianda.service;

import com.dianda.dao.UserDao;
import com.dianda.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    UserDao dao;
    public User login(String telephone,String password){
        return dao.login(telephone,password);
    }
    public User add(User user){
        return dao.save(user);
    }

}
